package com.togo.common.model.token;

import com.togo.common.enums.TokenType;

/**
 * @author : taiyanan
 * Date    : 2022/1/29
 * Time    : 5:50 下午
 * ---------------------------------------
 * Desc    : TODO
 */
public class EOLToken implements Token {

    private static final Token EOL_TOKEN = new EOLToken();
    private EOLToken() {}

    public static Token instance(){
        return EOL_TOKEN;
    }

    @Override
    public int getLineNumber() {
        throw new UnsupportedOperationException();
    }

    @Override
    public TokenType getType() {
        return TokenType.IDENTIFIER;
    }

    @Override
    public String getValue() {
        return "";
    }
}
